﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <style>
        tr{text-align:center}
        th{text-align:center}
    </style>    
    <asp:GridView runat="server" ID="gv1" AutoGenerateColumns="False" Height="127px" Width="549px" BackColor="White" 
         OnRowCancelingEdit="gv1_RowCancelingEdit" OnRowDeleting="gv1_RowDeleting" OnRowEditing="gv1_RowEditing" OnRowUpdating="gv1_RowUpdating"
        BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical">
        
        <AlternatingRowStyle BackColor="White" />
        
        <Columns>
            <asp:BoundField  DataField="Id" HeaderText="ID" ReadOnly="true"/>
            <asp:BoundField  DataField="Title" HeaderText="标题"/>
            <asp:BoundField  DataField="Content" HeaderText="内容"/>
            <asp:BoundField  DataField="Author" HeaderText="作者"/>
            <asp:BoundField  DataField="Remarks" HeaderText="备注"/>
            <asp:CommandField  HeaderText="高端操作" ShowDeleteButton="true" ShowCancelButton="true" ShowEditButton="true"/>
        </Columns>
        <FooterStyle BackColor="#CCCC99" />
        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#F7F7DE" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FBFBF2" />
        <SortedAscendingHeaderStyle BackColor="#848384" />
        <SortedDescendingCellStyle BackColor="#EAEAD3" />
        <SortedDescendingHeaderStyle BackColor="#575357" />
    </asp:GridView>
    <asp:Button  runat="server" Text="添加" OnClick="Unnamed1_Click1"/>

</asp:Content>
